﻿using System.Security.Claims;
using System.Threading.Tasks;

namespace pandx.Mulan.Authentication.JwtBearer
{
    public interface IJwtSecurityStampHandler
    {
        Task<bool> Validate(ClaimsPrincipal claimsPrincipal);
        Task SetSecurityStampCacheItem(int? tenantId, long userId, string securityStamp);
        Task RemoveSecurityStampCacheItem(int? tenantId, long userId);
    }
}